package edu.zut.cs.software.perfect.student.service;
/**
 * @ClassName StudentManager
 * @Description TODO
 * @Author jihao
 * @Date 2020年4月11日 下午1:24:59
 * @Version 1.0
 */

import java.util.List;
import java.util.Optional;

import edu.zut.cs.software.perfect.base.service.GenericManager;
import edu.zut.cs.software.perfect.student.domain.Student;

public interface StudentManager extends GenericManager<Long, Student> {

	Student echo(Student stu);
	
	Student findByName(String name);
	/**
	 * find student by name
	 * @return
	 */
	Student findById(Long id);
	/**
	 * find student by id
	 * @return
	 */
	//List<Student> findByCourseId(Long courseId);
	List<Student> findAll();
	Boolean deleteStudentId(Long courseId);
	
	Optional<Student> findByCourseId(Long courseId);
}
